<template>
    <div class="card"  :style="{width: width - 60 + 'rpx', padding: padding}">
      <slot></slot>
    </div>
</template>

<script>
  export default {
    name: 'card',
    props: {
      width: {
        default: 670,
        type: Number
      },
      padding: {
        default: '15rpx 30rpx',
        type: String
      }
    },
    data () {
      return {}
    }
  }
</script>

<style scoped>
  .card {
    padding: 15rpx 30rpx;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 0 auto;
  }
</style>
